<?php


/*
NEW IDEAS:

$update = new onlineUpdater();
//important
$update->setPassword("thepasword");
$update->createServerFile("sendchunk.php");

$update->setRemainingTime(true);
$update->setProgressBar(true);
$update->setOverwrite(true);
//$update->setDifferentFolder("test/");

//localfile, onlineupdater
$update->updateFolder("update/","http://zpilman.com/test/sendchunk.php");
$update->updateFile("update/myfile.php","http://zpilman.com/test/sendchunk.php");

 * */

//start timer
function microtime_float() {
	list($usec, $sec) = explode(" ", microtime());
	return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();

require_once("chatupdate.class.php");
$chatupdate = new chatupdate();
$chatupdate->chmodAll("update");
$chatupdate->sendUpdate("update",false,"php");

//end timer
$time_end = microtime_float();
$time = $time_end - $time_start;
echo "Rendering time: $time";